<html>
<head><meta charset="utf-8"><title>XPath testing rustdoc · rustdoc · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/index.html">rustdoc</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/XPath.20testing.20rustdoc.html">XPath testing rustdoc</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="225237609"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/XPath%20testing%20rustdoc/near/225237609" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/XPath.20testing.20rustdoc.html#225237609">(Feb 04 2021 at 23:05)</a>:</h4>
<p>I want to write the following XPath query:</p>
<div class="codehilite"><pre><span></span><code>// @has task_lists/index.html &#39;//li/input[@type=&quot;checkbox&quot;]/following-sibling::text()&#39; &#39;a&#39;
</code></pre></div>
<p>Unfortunately, this isn't supported by the built-in XPath engine in python: <a href="https://stackoverflow.com/a/41409525/7669110">https://stackoverflow.com/a/41409525/7669110</a>. How feasible is it to switch to <code>lxml</code>? I don't know what the policy is for python dependencies.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>